|
|
|
|
|
|
|
Next, create the two new Public properties, TraceFile and TraceFlag, and enter the code from Listing 14.31 into the Property Let and Property Get statements for these two new properties. |
|
|
|
|
|
|
|
|
Listing 14.31. Coding the Property Let and Property Get statements for the TraceFile and TraceLog properties. |
|
|
|
|
|
|
|
|
Public Property Get TraceFileName() As String
'
TraceFileName = trcFileName
'
End Property
Public Property Let TraceFileName(ByVal vNewValue As String)
'
trcFileName = vNewValue
'
End Property
Public Property Get TraceFlag() As Boolean
'
TraceFlag = trcFlag
'
End Property
Public Property Let TraceFlag(ByVal vNewValue As Boolean)
'
trcFlag = vNewValue
'
End Property |
|
|
|
|
|
|
|
|
Now add the code from Listing 14.32 to the Class_Initialize event. This code sets the default values for the two Public properties. |
|
|
|
|
|
|
|
|
Listing 14.32. Coding the Class_Initialize event. |
|
|
|
|
|
|
|
|
Private Sub Class_Initialize()
'
' startup stuff
trcFileName = App.EXEName & ".trc"
trcFlag = False
'
End Sub |
|
|
|
|
|